package model.aop.demo;

import model.aop.demo.entity.User;
import model.aop.demo.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestMain {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring-context.xml");
        UserService userService = ac.getBean("userService", UserService.class);
        User login = userService.login("admin", "admin");
    }
}
